package com.xie.system.domain.permission.role;

import com.xie.codegen.processor.creator.GenCreator;
import com.xie.codegen.processor.repository.GenRepository;
import com.xie.codegen.processor.updater.GenUpdater;
import com.xie.codegen.processor.vo.GenVo;
import com.xie.jpa.support.BaseJpaAggregate;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 角色资源关系
 *
 * @author admin
 */
@GenVo(pkgName = "com.xie.system.domain.permission.role.vo")
@GenCreator(pkgName = "com.xie.system.domain.permission.role.creator")
@GenUpdater(pkgName = "com.xie.system.domain.permission.role.updater")
@GenRepository(pkgName = "com.xie.system.domain.permission.role.repository")
@Entity
@Table(name = "role_resource_rel")
@Data
public class RoleResourceRel extends BaseJpaAggregate {

  private Long roleId;

  private Long resourceId;

}
